package com.xiao.controller;

import com.xiao.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @_PackageName:com.xiao.service.controller
 * @_ClassName:AsnycController
 * @_Description:
 * @_Author：笑老二
 * @_data 2020/12/24 13:16
 */
@RestController
public class AsyncController {

    @Autowired
    AsyncService asyncService;

    @GetMapping("/hello")
    public String hello(){
        asyncService.hello();
        return "success";
    }



}
